#!/bin/bash

if [ -d $1 ];
then
	#first of all it is stored the actual path because it wil be modified later
	path="`pwd`"

	overview="$path/$1/source/01-overview.html"
	summary="$path/$1/source/02-project.html"
	header=""
	footer=""

	company="Visual Apps Engine"
	title="Documentation for $1"

	input="$path/$1/source"
	output="$path/$1/doc/files/classes/$1.html"

	#cppdoc command ...
	../tools/cppdoc2/cppdoc  -enable-author -namespace-as-project -summary-html="$summary" -overview-html="$overview" -company="$company" -header="$header" -footer="$footer" -title="$title" $input $output
else
	echo "The argument given '$1' is not a package"
fi

